<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            background-color: black;
            height: 100vh;
        }
        h2{
            display: flex;
            justify-content: center;
            color:white
        }
        .box{
            width: 100%;
            height: 100%;
            position: absolute;
            left: 0;
            top: 0;
            z-index: 99;
            overflow: hidden;
        }
        .box .active{
            display: inline-block;
            width: 30px;
            height: 30px;
            margin: 1px;
            background-color: #ccc;
        }
        .box .act{
            background-color: greenyellow;
            transition: all 3s,background-color 0s;
            transform: translate(0,100vh);
        }
    </style>
</head>
<style>
</style>
<body>
    <h2>HELLOW WORD</h2>
    <h2>HELLOW WORD</h2>
    <h2>HELLOW WORD</h2>
    <h2>HELLOW WORD</h2>
    <div class="box"></div>
</body>
</html>
<script>
    var box = document.querySelector(".box")
    for(var i=0;i<1500;i++){
        var createdbox = document.createElement("span")
        createdbox.className = "active"
        box.appendChild(createdbox)
    }
    var activebox = document.querySelectorAll(".active")

    activebox.forEach((item,index)=>{
        item.addEventListener("mouseover",function(e){
            item.classList.add("act")
        })
    })
</script>